package com.eastfair.auth.hystrix;

import com.eastfair.auth.api.AuthServiceFeign;
import com.eastfair.auth.api.GlobalBusinessServiceFeign;
import com.eastfair.auth.dto.RoleDTO;
import com.eastfair.auth.vo.RoleVo;
import com.eastfair.core.base.R;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class GlobalBusinessServiceFallback implements GlobalBusinessServiceFeign {
    @Override
    public R<List<RoleVo>> queryRole(RoleDTO roleDTO) {
        return R.timeout();
    }
}
